<?php

/*

 */

/**
 * Description of Db
 *
 * @author ngo
 */
class Db {
    
    private $_ressource;
    //put your code here
    public function __construct(){
        
        $this->_ressource = mysql_connect('127.0.0.1','root','');
        
        if (!$this->_ressource) {
            die('Could not connect: ' . mysql_error());
        }

        mysql_select_db('abaquar', $this->_ressource);
    }
    
    public function __destruct(){
        mysql_close($this->_ressource);
    }
}